<div class="tipbox tipbox-warning mb5">
    <span class="fn-fb">功能提示</span>:仅支持禁止修改、禁止任何领取通道的优惠券。<br />
</div>  
<div class="titlebar">
    <div class="fn-left"><i class="iconfont icon-text_icon"></i>优惠券列表</div>
    <div class="fn-right ">
        <form id="form" action="{:url('coupon/selectid')}" method="get" class="input-group">
            <input type="hidden" name="shop_id" value="{$shop_id}"/>
            <input placeholder="请输入优惠券名称" class="input" type="text" name="keyword" value="{$keyword}"/>
            <input type="submit" value="搜索" class="button button-blue" />
        </form>
    </div>
</div>
<table class="table table-border">
    <thead>
        <tr>
            <th class="w100 fn-tac">选择</th>
            <th class="w60"></th>
            <th>优惠券信息</th>
            <th class="w100 fn-tar">剩余/初始</th>
            <th class="w100 fn-tar">额度(￥)</th>
            <th class="w100 fn-tar">满用(￥)</th>
            <th class="w100 fn-tar">抵扣/折扣</th>
        </tr>
    </thead>
    <tbody>
        {foreach $lists as $vo}
        <tr>
            <td class="fn-tac"><a href="{:url('allwin/Shop/setid',['shop_id'=>$shop_id,'coupon_id' => $vo.id])}" onclick="javascript:parent.layer.close(parent.layer.getFrameIndex(window.name));" class="button selectID" title="选择"><i class="iconfont icon-text_icon"></i>选择</a></td>
            <td class="fn-tac"><img src="{$vo.img ? $vo.img : '__PUBLIC__/admin/review.png'}?x-oss-process=style/80" class="w50"></td>
            <td>
                <i class="iconfont icon-discount"></i><span class="selectID fn-cp fn-fb" url="{:url('coupon/review',['id'=>$vo.id])}">{$vo.name}</span><br />
                <span class="selectID fn-cp" url="{:url('store/review',['id'=>$vo.store.id])}"><i class="iconfont icon-store_icon"></i>{$vo.store.name}</span><br />
                <span class="gray"><i class="iconfont icon-wodedingdan2"></i>{$vo.tips}</span>
            </td>
            <td class="fn-tar">{$vo.num}/{$vo.num_of}</td>
            <td class="fn-tar"><i class="iconfont icon-renminbi1688"></i>{$vo.size|money}</td>
            <td class="fn-tar"><i class="iconfont icon-renminbi1688"></i>{$vo.howmuch|money}</td>
            <td class="fn-tar">{if $vo.types}{$vo.discount}折{else}￥{$vo.price}{/if}</td>
        </tr>
        {/foreach}
    </tbody>
</table>
{$lists|raw}